<%-- 
    Document   : RegisterCustomerProcess
    Created on : Feb 18, 2012, 1:46:34 AM
    Author     : Home
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%! 
  
%>
<jsp:useBean id="formHandler" class="servlets.Validate" scope="request">
<jsp:setProperty name="formHandler" property="*"/>
</jsp:useBean>
<% 
   if (formHandler.validate()) {
       
       formHandler.setUserName("");
       formHandler.setFirstName("");
       formHandler.setLastName("");
       formHandler.setEmail("");
       formHandler.setmiddleInitial("");
       formHandler.setUserName("");

      response.sendRedirect("../index.jsp"); 
 
  }  else {
%>
    <jsp:forward page="../register/retry.jsp"/>
<%
   }
%>

